package com.health.common.exception;

import org.apache.log4j.Logger;

public class HealthException extends Exception {

    private static final long serialVersionUID = 509959163089152778L;

    private static final Logger logger = Logger.getLogger(HealthException.class);

    public HealthException(String message) {
        super(message);
        logger.error(message);
    }

    public HealthException(String message, Exception e) {
        super(message, e);
        logger.error(message, e);
    }

    public HealthException(Exception e) {
        super(e);
        logger.error(e);
    }
}
